package com.rul.mars.order.service;

import com.rul.mars.mbg.model.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author RuL
 */
@FeignClient("mars-user")
public interface UserService {

    /**
     * 远程调用当前登录用户信息
     *
     * @return 当前登录用户信息
     */
    @PostMapping("/user/current")
    User currentUser();
}
